<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
String baseInfoJson= (String)request.getAttribute("baseInfoJson");
String hospitalVisitJson= (String)request.getAttribute("hospitalVisitJson");
String diseaseDiagInfoJson= (String)request.getAttribute("diseaseDiagInfoJson");
String cureInfoJson= (String)request.getAttribute("cureInfoJson");
String provincesList= (String)request.getAttribute("provincesList");
String operateInfoJson= (String)request.getAttribute("operateInfoJson");
String success= (String)request.getAttribute("success");
%>
<link rel="stylesheet" href="${basePath}/assets/bootstrap/css/bootstrap.css"/>    
<link rel="stylesheet" href="${basePath}/assets/css/medical_record/home_page.css"/>
<link rel="stylesheet" href="${basePath}/assets/css/basic.css"/>
<link rel="stylesheet" href="${basePath}/assets/jquery-ui/jquery-ui.css"/>


<script type="text/javascript" src="${basePath}/assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${basePath}/assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="${basePath}/assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}/assets/layer/layer.js"></script>
<script type="text/javascript" src="${basePath}/assets/js/medical_record/home_page.js"></script>
<script type="text/javascript" src="${basePath}/assets/js/medical_record/edit_basic_info.js"></script>

<script type="text/javascript" src="${basePath}assets/js/echarts.js"></script>




<script type="text/javascript" src="${basePath}/assets/My97DatePicker/WdatePicker.js"></script>
<input type="hidden" id="basePath" value="${basePath }">
<form action=""
	method="post" id="bedRateUserForm">
<input type="hidden" id="month" name="month" value="${month}">
<table style="width:100%;" cellpadding="0" cellspacing="0" id="table">
<tbody>
	<tr>
		
		<td colspan="6" style="text-align:right;">
		    <input type="button" value="保存" class="btn"  onclick="saveOutSatisContrastAnalysisInfo()">
		    <input type="button" value="导出" class="btn"  onclick="exportBedIndexInfo()">
		</td>
	</tr>
			
			
			<tr>
			   <td class="tdLabel_7" style="width:10%">患者满意度对比说明</td>
				<td class="tdLabel_8" colspan="7">
					<textarea style="width:95%;height:120px" id="note">${outSatisContrastAnalysisInfo.analysisNote}</textarea>
				</td>
			</tr>
			
			<tr>
			 
				
			
				<td class="tdLabel_8" colspan="7" style="width:780px">
					<div style="height:auto;">
							<table class="Search_tableList" style="margin:0 auto;" id="diseaseDiagTable" cellpadding="0" cellspacing="0">
		
							<thead>
							<tr>
								<td colspan="6" style="text-align:center;font-size:16px;">
									门诊患者满意度调查对比分析
								</td>
							</tr>
				
							<tr>
								<td class="tdLabel_4" width="50%"></td>
								<td class="tdLabel_4" width="12%">${statisticalReportParam.statics1Name}</td> 
								<td class="tdLabel_4" width="12%">${statisticalReportParam.statics2Name}</td> 
								<td class="tdLabel_4" width="12%">增减（%）</td>
								<td class="tdLabel_4" width="12%">增幅（%）</td>
								
								
							</tr>
							</thead>
							<tbody >
				              <c:forEach var="record"   items="${outSatisContrastAnalysisInfo.outSatisContrastAnalysisRecord}">
								<tr>
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.desc}' /></td>
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.monthRate}' /></td> 
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.othrtRate}' /></td> 
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.fluctuate}' /></td>
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.range}' /></td>
							     </tr>
                              </c:forEach>
							</tbody>
							</table>
						</div>
				</td>
			</tr>
			
			
			
		
			

		
		</tbody>
</table>
	

</form>





<script>

     //保存
     function saveOutSatisContrastAnalysisInfo(){
	    var note = $("#note").val();
		$.ajax({
		    type:"post",
		    data:{note:note},
		    url:"${basePath}/report/saveOutSatisContrastAnalysisInfo",
		    success:function(data){
		    	layer.alert(data.msg,{icon:1});
		    }
		})

     }
     
     
    function exportBedIndexInfo(){
    	var month = $("#month").val();
    	window.location.href="${basePath}/report/exportBedIndexInfoWord?month="+month;
    }

 

	
</script>